﻿namespace Yipusoft.Account.BLL
{
    using System;
    using System.Collections.Generic;
    using Yipusoft.Account.DAL;
    using Yipusoft.Account.Model;

    public class Permission
    {
        public static bool Delete(string PermissionID)
        {
            Yipusoft.Account.DAL.Permission permission = new Yipusoft.Account.DAL.Permission();
            return permission.Delete(PermissionID);
        }

        public static bool Exsits(string PermissionID)
        {
            Yipusoft.Account.DAL.Permission permission = new Yipusoft.Account.DAL.Permission();
            return permission.Exsits(PermissionID);
        }

        public static List<PermissionInfo> GetList(string StrWhere)
        {
            Yipusoft.Account.DAL.Permission permission = new Yipusoft.Account.DAL.Permission();
            return permission.GetList(StrWhere);
        }

        public static PermissionInfo GetPermission(string PermissionID)
        {
            Yipusoft.Account.DAL.Permission permission = new Yipusoft.Account.DAL.Permission();
            return permission.GetPermission(PermissionID);
        }

        public static bool Insert(PermissionInfo Permission)
        {
            Yipusoft.Account.DAL.Permission permission = new Yipusoft.Account.DAL.Permission();
            return permission.Insert(Permission);
        }

        public static bool Update(PermissionInfo Permission)
        {
            Yipusoft.Account.DAL.Permission permission = new Yipusoft.Account.DAL.Permission();
            return permission.Update(Permission);
        }
    }
}

